package org.argetr.resim.property;

import java.util.Hashtable;

public class PropertyManager{
    private Hashtable<String,Property> _propertyMap; 
    
    public PropertyManager() {
		_propertyMap = new Hashtable<String, Property>();
	}
    
    public void addProperty(Property property)
    {
    	_propertyMap.put(property.getId(), property);
    }
    
    public Property getProperty(String propertyId)
    {
    	return _propertyMap.get(propertyId);
    }
    
    public boolean isRegisteredProperty(String propertyId)
    {    	
    	return _propertyMap.containsKey(propertyId);
    }
    
    public void clear()
    {
    	_propertyMap.clear();
    }
}
